﻿<%@ page language="java" contentType="text/html;charset=UTF-8" pageEncoding="utf-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<html>
<head>
    <title>通道管理界面</title>
    <link type="text/css" rel="stylesheet" href='<spring:url value="/webjars/bootstrap/3.3.5/css/bootstrap.min.css"/>' />
    <link type="text/css" rel="stylesheet" href='<spring:url value="/webjars/bootstrap/3.3.5/css/bootstrap-theme.min.css"/>' />
    <link type="text/css" rel="stylesheet" href='<spring:url value="/resources/css/content.css"/>'/>
    <script src='<spring:url value="/webjars/jquery/1.11.1/jquery.min.js"/>'></script>
    <script src='<spring:url value="/webjars/bootstrap/3.3.5/js/bootstrap.js"/>'></script>
    <script src='<spring:url value="/webjars/angularjs/1.5.5/angular.min.js"/>'></script>
    <script src='<spring:url value="/webjars/angularjs/1.5.5/angular-resource.js"/>'></script>
    <script src='<spring:url value="/webjars/bootbox/4.4.0/bootbox.js"/>' ></script>
    <script src='<spring:url value="/resources/js/topic/TopicModel.js"/>'></script>
    <script src='<spring:url value="/resources/js/topic/TopicController.js"/>'></script>
    <script src='<spring:url value="/resources/js/topic/TopicService.js"/>'></script>
</head>
<body>
    <div  ng-app="topicApp" ng-controller="topicCtrl" >
        <div class="adcc-container" >
            <form class="form-inline" style="float: right;">
                <div class="input-group">
                    <ol class="breadcrump" style="padding:0px;margin: auto;">
                        <li class="active" style="list-style: none">刷新时间：</li>
                    </ol>
                </div>
                <div class="form-group">
                    <select ng-model="selectTime" class="form-control" ng-init="selectTime='30000'"
                            ng-change="changeTime(selectTime)">
                        <option value='15000'>15秒</option>
                        <option value='30000'>30秒</option>
                        <option value='60000'>60秒</option>
                    </select>
                </div>
            </form>
            <ol class="breadcrumb">
                <li class="active">MQ管理</li>
                <li class="active">会话</li>
            </ol>
              <table class="table table-bordered table-striped  table-condensed table-hover">
                  <thead><tr>
                      <th>名称</th>
                      <th>类型</th>
                      <th>持久化</th>
                  </tr></thead>
                  <tr ng-repeat="topic in topics">
                      <td style="vertical-align: middle;width: 40%">{{topic.name }}</td>
                      <td style="vertical-align: middle;width: 30%">{{topic.type }}</td>
                      <td style="vertical-align: middle;width: 30%">{{topic.persistent ? '持久化' : '非持久化'}}</td>
                  </tr>
              </table>
        </div>
</div>
</body>
</html>
